package com.chuan.thinkingjava.think1;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.zip.GZIPOutputStream;

public class Test5 {
	
	private BufferedReader bufferedReader;
	public static void main(String[] args) {
		//1
//		Set<Object> set = new HashSet<Object>();
//		set.add("t");
//		set.add("t");
//		set.add(1);
//		set.add("1");
//		set.add(Byte.valueOf("1"));
//		System.out.println(set);
		//2
//		int num = 100;
//		num += 10;
//		System.out.println(num);
		//3
//		int a = 0;
//		System.out.println("a++"+ a++);
//		System.out.println("++a"+ ++a);
//		Thread t = new Thread();
//		Exception e = new Exception();
		String str1 = "hello";
		String str2 = "he" + new String("llo");
		System.out.println(str1 == str2);

	}
	public void Test5() {
		try {
			new BufferedWriter(new FileWriter("a.txt"));
			new GZIPOutputStream(new FileOutputStream("a.zip"));
//			bufferedReader = new BufferedReader(new FileInputStream("a.dat"));
			new ObjectInputStream(new FileInputStream("a.dat"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
